use super::traits::*;

pub struct LittleFairy {
    hp: u32,
}

impl LittleFairy {
    pub fn with_hp(hp: u32) -> Self {
        Self { hp }
    }
}

impl UnitHp for LittleFairy {
    fn hp(&self) -> u32 {
        self.hp
    }

    fn set_hp(&self, new_hp: u32) -> Self {
        Self::with_hp(new_hp)
    }
}

impl UnitName for LittleFairy {
    fn name(&self) -> &str {
        "Little Fairy"
    }
}

